package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.UserIntegralSigninDO;
import org.apache.ibatis.annotations.Param;


/**
 * 用户签到
 * 
 * @author chen
 * @email 
 * @date 2020-07-31 16:49:25
 */
public interface UserIntegralSigninMapper extends BaseMapper<UserIntegralSigninDO> {
	/**
	 * 今天是否签到
	 * @param userId
	 * @return
	 */
	public Integer isSign(@Param("userId") Long userId);

	/**
	 * 昨天是否签到
	 * @param userId
	 * @return
	 */
	public Integer isYesDaySign(@Param("userId") Long userId);

	/**
	 * 最近一次签到记录
	 * @param userId
	 * @return
	 */
	public UserIntegralSigninDO latelySignData(@Param("userId") Long userId);
}
